#include <my_head.h>

int main(int argc, const char *argv[]){
    pid_t pid = 0;
    if(-1 == (pid = fork())){
        ERR_LOG("fork error");
    }else if(0 < pid){
        while(1){
            printf("父\n");
            sleep(1);
        }
    }else if(0 == pid){
        while(1){
            printf("子\n");
            sleep(1);
        }
    }
    return 0;
}